﻿using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.SeedWork;

namespace Windows.WorkFlow.Domain
{
    public class Flow : FullEntity<long>
    {
        public Flow()
        {
            Master_Flows = new HashSet<Master_Flow>();
        }
        /// <summary>
        /// 流程名称
        /// </summary>
        public string Name { get; set; } = "";
        /// <summary>
        /// 流程模型(json格式)
        /// </summary>
        public string EditorJson { get; set; } = "";
        public string? Remark { get; set; }
        public long FlowCategoryId { get; set; }
        public long FormId { get; set; }
        public virtual Form? Form { get; set; }
        public virtual FlowCategory? FlowCategory { get; set; }
        /// <summary>
        /// 可用对象集合
        /// </summary>
        public virtual ICollection<Master_Flow> Master_Flows { get; set; }
    }
}
